home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 429 < prev    next >
Text File  |  1996-08-06  |  882b  |  29 lines

  1. Path: newsfeed.gsfc.nasa.gov!news!ramin
  2. From: ramin@twinkie.gsfc.nasa.gov (Ramin Sina)
  3. Newsgroups: comp.std.c
  4. Subject: CLOCKS_PER_SEC not defined
  5. Followup-To: comp.std.c
  6. Date: Wed, 14 Feb 96 23:41:02 GMT
  7. Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
  8. Message-ID: <ramin.1174728902A@news.gsfc.nasa.gov>
  9. NNTP-Posting-Host: ramin.gsfc.nasa.gov
  10. X-Newsreader: VersaTerm Link v1.1
  11.  
  12. Hello everyone,
  13.  
  14. I am using a supposedly ansi c program in which I write
  15.  
  16. #include <time.h>
  17.  
  18. #if defined(__STDC__) && !defined(CLOCKS_PER_SEC)
  19. #error "CLOCKS_PER_SEC is not defined on this stupid compiler"
  20. #endif
  21.  
  22. I get the error that CLOCKS_PER_SEC is not defined. I had thought that it
  23. was defined in standard C in the time.h header. I need CLOCKS_PER_SEC to
  24. time how long it takes for the program to run. Can anybody suggest how I can
  25. fix this problem.
  26.  
  27. Thanks, 
  28. Ramin Sina  
  29.